package abacab.serialization.huffman;

/**
 * Represents the code for a character
 */
public class Code {
	/** The character */
	private final char	character;

	/** The code */
	private final int		code;

	/** The mask's size */
	private final int		maskSize;

	/**
	 * Create the code
	 * 
	 * @param character
	 *          the character
	 * @param code
	 *          the code
	 * @param maskSize
	 *          the mask's size
	 */
	public Code(char character, int code, int maskSize) {
		this.character = character;
		this.code = code;
		this.maskSize = maskSize;
	}

	/**
	 * @return the character
	 */
	public final char getCharacter() {
		return this.character;
	}

	/**
	 * @return the code
	 */
	public final int getCode() {
		return this.code;
	}

	/**
	 * @return the mask's size
	 */
	public final int getMaskSize() {
		return this.maskSize;
	}
}